package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.foundation.ui.framework.widget.Space;
import com.huawei.appmarket.service.store.awk.card.ContentNormalItemCard;
import o.cdr;
import o.cih;
import o.eib;
import o.epv;
import o.ewm.h;

public class ContentListNode extends cdr {
    public ContentListNode(Context context) {
        super(context, 1);
    }

    public int ˏ() {
        return 1;
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        int ˏ = ˏ();
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        LayoutParams layoutParams = new LinearLayout.LayoutParams(eib.ᐝॱ(), -1);
        LayoutParams ˋ = epv.ˋ();
        for (int i = 0; i < ˏ; i++) {
            if (i != 0) {
                viewGroup.addView(new Space(this.ॱ), layoutParams);
            }
            ViewGroup viewGroup3 = (ViewGroup) from.inflate(h.ߵ, null);
            cih contentNormalItemCard = new ContentNormalItemCard(this.ॱ);
            contentNormalItemCard.ˏ(viewGroup3);
            ˊ(contentNormalItemCard);
            viewGroup.addView(viewGroup3, ˋ);
        }
        return true;
    }
}
